import 'dart:ui';

import 'package:flutter/material.dart';
void main(List<String> args) {
  runApp(MyApp()) ;
}


//自定义组件  圓形圖片
class MyApp extends StatelessWidget {
  const MyApp({Key key}) : super(key: key);
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar:AppBar(
          title: Text("flutter demo"),
        ),
        body:HomeContent(),
      ),
      theme: ThemeData(
        // brightness: Brightness.light,
        primarySwatch: Colors.yellow
      ),
    );
  }
}

class HomeContent extends StatelessWidget {
  const HomeContent({Key key}) : super(key: key);

  List<Widget> _getDataList(){
    return [
      ListTile(
        title: Text("1111111"),
      ),
      ListTile(
        title: Text("1111111"),
      ),
      ListTile(
        title: Text("1111111"),
      ),
      ListTile(
        title: Text("1111111"),
      ),
      ListTile(
        title: Text("1111111"),
      ),
      ListTile(
        title: Text("1111111"),
      ),
       ListTile(
        title: Text("1111111"),
      ),
      ListTile(
        title: Text("1111111"),
      ),
      ListTile(
        title: Text("1111111"),
      ),
      ListTile(
        title: Text("1111111"),
      ),
      ListTile(
        title: Text("1111111"),
      ),
      ListTile(
        title: Text("1111111"),
      )
    ];
  }

  @override
  Widget build(BuildContext context) {
    return ListView(
      children: this._getDataList(),
    );
  }
}

